package sg.edu.nus.iss.team2s.jass.util;

import java.awt.*;

/**
 * @author LU ZHIXIAN
 */

public  class ConfirmDialog extends OkCancelDialog {

	private static final long serialVersionUID = 1L;
	private Label       messageLabel;

    public ConfirmDialog (Frame parent, String title, String message) {
        super (parent, title);
        messageLabel.setText (message);
		CommonUtility.alignScreenCenter(this);
    }

    protected Panel createFormPanel () {
        Panel p = new Panel ();
        messageLabel = new Label ();
        p.add (messageLabel);
        return p;
    }
    
    protected boolean performOkAction () {return true;};

}
